package megaezgo

import (
	"fmt"
	//"errors"
	//"strconv"
	"thirdpaysdk/utils/mapstruct"
	//"github.com/astaxie/beego"
)

type MegaezgoMsg struct {
	STORE_ID       string  `json:"STORE_ID"`
	STORE_ORDER_NO string  `json:"STORE_ORDER_NO"`
	SYS_ORDER_ID   string  `json:"SYS_ORDER_ID"`
	ORDER_TIME     string  `json:"ORDER_TIME"`
	ORDER_CURRENCY string  `json:"ORDER_CURRENCY"`
	ORDER_AMOUNT   string  `json:"ORDER_AMOUNT"`
	ORDER_DESC     string  `json:"ORDER_DESC"`
}

//StatusCode   string  `json:"StatusCode"`
//StatusDesc   string  `json:"StatusDesc"`
	
func MegaezgoMsgNotify(response *MegaezgoMsg) (map[string]string){
	var paramsMap map[string]string = make(map[string]string)
	rspMap := mapstruct.Struct2Map(response, "json")
	for k, v := range rspMap {
		paramsMap[k] = fmt.Sprintf("%v", v)
	}
	return paramsMap
}
